Skip to content

feat(a2ui): v0.9 action envelope and sendDataModel transport#101

Merged
blove merged 9 commits into
mainfrom
feat/a2ui-send-data-model
Apr 10, 2026
Merged

feat(a2ui): v0.9 action envelope and sendDataModel transport#101
blove merged 9 commits into
mainfrom
feat/a2ui-send-data-model

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Apr 10, 2026

Summary

  • Add v0.9 spec-compliant A2uiActionMessage envelope with sourceComponentId, timestamp, and resolved context DynamicValues
  • Implement sendDataModel flag — when set on createSurface, the full data model snapshot is attached to every outbound action via metadata.a2uiClientDataModel
  • Add dedicated (action) output on A2uiSurfaceComponent separating agent-bound messages from observation events, with ChatComponent auto-routing

Test plan

  • 83 a2ui lib tests passing
  • 187 chat lib tests passing (12 new: context resolution, sourceComponentId, envelope construction, sendDataModel)
  • Rebased cleanly onto latest main
  • Verify cockpit contact form round-trip with v0.9 action parsing
  • Verify sendDataModel attaches data model in outbound payload

Breaking change: Outbound action payload shape changed from {type: "a2ui_event", ...} to v0.9 {version: "v0.9", action: {...}}. Server-side consumers parsing the old shape must update.

🤖 Generated with Claude Code

blove and others added 9 commits April 10, 2026 12:06
Add sendDataModel flag to A2uiSurface runtime state, new A2uiClientDataModel
and A2uiActionMessage envelope types, export them from the public API, and fix
a pre-existing TS7017 error in functions.ts that was blocking the build.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n surfaceToSpec

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…lope

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ction parsing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…riable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment Apr 10, 2026 7:08pm

Request Review

@blove blove merged commit f196a84 into main Apr 10, 2026
14 checks passed
@blove blove deleted the feat/a2ui-send-data-model branch April 10, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant